export interface ReminderSettings {
  id: string;
  title: string;
  time: string; // 格式: HH:MM
  repeat: boolean;
  repeatDays: number[]; // 0-6 代表周日到周六
  advanceReminder: number; // 提前提醒分钟数
  reminderType: 'alarm' | 'geofence' | 'both';
  snoozeEnabled: boolean;
  snoozeInterval: number; // 稍后提醒间隔(分钟)
  skipHolidays: boolean;
}

export interface GeofenceSettings {
  id: string;
  name: string;
  latitude: number;
  longitude: number;
  radius: number; // 米
  startTime: string; // 格式: HH:MM
  endTime: string; // 格式: HH:MM
  sensitivity: 'low' | 'medium' | 'high';
  isEnabled: boolean;
}

export interface AppSettings {
  theme: 'light' | 'dark' | 'system';
  notificationSound: string;
  vibrationEnabled: boolean;
  workWifiSsid?: string; // 用于静音模式检测
  syncAcrossDevices: boolean;
}

export interface ReminderHistory {
  id: string;
  reminderId: string;
  triggeredAt: Date;
  acknowledgedAt?: Date;
  type: 'alarm' | 'geofence';
  status: 'pending' | 'acknowledged' | 'missed';
}